import req from './req'

// 代理商列表
export function list(params = {}) {
  return req.get('/agents/list', params)
}

// 获取代理商详情
export function detail(params = {}) {
  return req.get(`/agents/${params.agent_id}`, params)
}

// 代理商返佣列表
export function brokerageList(params = {}) {
  return req.get('/agents/brokerage/list', params)
}

// 代理商提现记录
export function cashList(params = {}) {
  return req.get('/agents/cash/withdrawal', params)
}

// 佣金统计数据
export function statistics(params = {}) {
  return req.get('/agents/brokerage/statistics', params)
}

// 区域列表
export function areaList(params = {}) {
  return req.get('/agents/area/list', params)
}

// 商家列表
export function shopList(params = {}) {
  return req.get('/agents/merchant/list', params)
}

// 佣金列表
export function rebateList(params = {}) {
  return req.get('/agents/brokerage/list', params)
}

// 提现列表
export function cashWithdrawalList(params = {}) {
  return req.get(`/agents/cash/withdrawal`, params)
}

// 团长列表
export function teamLeaderList(params = {}) {
  return req.get(`/popularize/promoter/list`, params)
}
